# 设置终端和输出文件
#set terminal pngcairo size 800,600

# 启动多图模式，并设置布局为2行1列
set multiplot layout 2,1 title "Multiple Subplots"

# 第一个子图
set origin 0.0,0.5
set size 0.5,0.5
set title "First Subplot"
set xlabel "X Axis for SP1"
set ylabel "Y Axis for SP1"
plot "data_1.txt" with lines title "curve for sp1"

# 第二个子图
set origin 0.5,0.5
set size 0.5,0.5
set title "Second Subplot"
set xlabel "X Axis for SP2"
set ylabel "Y Axis for SP2"
plot "data_2.txt" with lines title "curve for sp2"

# 设置整体标题
set title "Plot of E"

#set output "E.png"
#replot
# 退出多图模式
unset multiplot